<%@ page import="com.wmf.model.User" %>
<%@ page import="java.util.List" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" +
            request.getServerPort() + path + "/";
%>
<base href="<%=basePath%>">


<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>My First Web</title>
      <script src="<%=basePath%>js/jquery-1.8.3.min.js"></script>
  </head>
  <body>
  <a href="<%= request.getContextPath() %>/logOutServlet">退出</a>
  在线人数：${logincount}
  <table border="1px">
    <tr>
      <td>用户名</td>
      <td>手机号</td>
    </tr>
    <c:forEach items="${userList}" var="user">
      <tr>
        <td>${user.name}</td>
        <td>${user.phone}</td>
      </tr>
    </c:forEach>
  </table>

  </body>
<script>
  $(function(){
  });
</script>
</html>
